home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
program
/
gucrtr13.lha
/
GUICreator1.3
/
GUIC.lha
/
GUICreator
/
Demos
/
Sound_Main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-22
|
3KB
|
78 lines
/*************************************************************************/
/* */
/* GUI designed with GUICreator V1.3 - © 1995 by Markus Hillenbrand */
/* */
/*************************************************************************/
char *V="$VER: Name 1.0 (01.08.95)";
/*************************************************************************/
/* */
/* Includes */
/* */
/*************************************************************************/
#include <wbstartup.h>
#include <exec/types.h>
#include <graphics/gfxbase.h>
#include <intuition/gadgetclass.h>
#include <clib/alib_protos.h>
#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/gadtools_protos.h>
#include <clib/graphics_protos.h>
#include <clib/dos_protos.h>
#include "Sound.h"
/*************************************************************************/
/* */
/* Variables and Structures */
/* */
/*************************************************************************/
struct IntuitionBase *IntuitionBase = NULL;
struct GfxBase *GfxBase = NULL;
struct Library *GadToolsBase = NULL;
struct Library *AslBase = NULL;
struct Library *UtilityBase = NULL;
struct Library *DataTypesBase = NULL;
/*************************************************************************/
/* */
/* main() */
/* */
/*************************************************************************/
void main (int argc, char *argv[])
{
IntuitionBase=(struct IntuitionBase *)OpenLibrary("intuition.library",39);
GfxBase =(struct GfxBase *) OpenLibrary("graphics.library" ,39);
GadToolsBase =OpenLibrary("gadtools.library" ,39);
AslBase =OpenLibrary("asl.library" ,39);
DataTypesBase=OpenLibrary("datatypes.library",39);
UtilityBase =OpenLibrary("utility.library" ,39);
if (IntuitionBase && GadToolsBase && GfxBase && AslBase && DataTypesBase && UtilityBase)
{
struct Screen *screen=LockPubScreen(NULL);
if (screen)
{
HandleSoundPrefsWindow(screen,-1,-1,NULL);
UnlockPubScreen(NULL,screen);
}
else Printf("Cannot lock screen\n");
}
else Printf("Cannot open libraries v39!\n");
if (AslBase) CloseLibrary(AslBase);
if (UtilityBase) CloseLibrary(UtilityBase);
if (GadToolsBase) CloseLibrary(GadToolsBase);
if (DataTypesBase) CloseLibrary(DataTypesBase);
if (GfxBase) CloseLibrary((struct Library *)GfxBase);
if (IntuitionBase) CloseLibrary((struct Library *)IntuitionBase);
}